package com.lq.ecoldchain.ui.mine.carInfo.carline

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.lq.ecoldchain.R
import com.lq.ecoldchain.entity.CityInfo

/*
*2019/1/3 0003  11:38
*function by lq
*/
class CarLineAdapter(list:List<CityInfo>):BaseQuickAdapter<CityInfo,BaseViewHolder>(R.layout.layout_car_line_item,list){
    override fun convert(helper: BaseViewHolder?, item: CityInfo?) {
        helper?.setText(R.id.startPlaceTv,item?.cityName)
//        helper?.setText(R.id.endPlaceTv,item?.endCityName)
        helper?.addOnLongClickListener(R.id.cityItemRl)
    }

}